package cn.kgc.kgczuulserver;

import cn.kgc.kgczuulserver.filter.KgcZuulFilter;
import cn.kgc.kgczuulserver.filter.KgcZuulFilter2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableEurekaClient
@EnableZuulProxy
public class KgcZuulServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(KgcZuulServerApplication.class, args);
    }

    @Bean
    public KgcZuulFilter getFilter(){
        return new KgcZuulFilter();
    }


    @Bean
    public KgcZuulFilter2 getFilter2(){
        return new KgcZuulFilter2();
    }

}
